package com.hspedu.controller;

import com.alibaba.csp.sentinel.adapter.servlet.callback.UrlCleaner;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;

@Component
public class CustomUrlCleaner implements UrlCleaner {
    @Override
    public String clean(String originUrl) {
        if (StringUtils.isBlank(originUrl)){
            return originUrl;
        }
        if (originUrl.startsWith("/member/get")){
            return "/member/get/*";
        }
        return originUrl;
    }
}
